import request from '@/utils/request';
import md5 from 'js-md5';

export interface LoginParamsType {
  username: string;
  password: string;
}

export async function fakeAccountLogin({ username, password }: LoginParamsType): Promise<any> {
  return request('/cas/login', {
    method: 'POST',
    params: {
      username,
      password: md5(password)
    }
  });
}
